package router

import (
	"github.com/gin-gonic/gin"
	"github.com/gin-gonic/gin/testdata/protoexample"
)

func ProtobufRoute(router gin.IRouter) {
	router.GET("/someProto", func(c *gin.Context) {
		reps := []int64{int64(1), int64(2)}
		label := "test"

		data := &protoexample.Test{
			Label: &label,
			Reps:  reps,
		}

		c.ProtoBuf(200, data)
	})
}
